package com.mark.spring.annotation.life.cycle.predestroy;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 歌手的配置Bean
 * @Author: Mark
 * @CreateDate: 2019/9/17 21:18
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Configuration
public class SingerConfig {

    @Bean
    public Singer singer(){
        Singer singer = new Singer();
        singer.setName("Jay");
        singer.setSong("《说好不哭》");
        return singer;
    }

}
